package com.hdl.sqlSession;

import com.hdl.pojo.Configuration;
import com.hdl.pojo.MappedStatement;

import java.beans.IntrospectionException;
import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.List;

/**
 * @author hedonglin
 * @date 2020/4/21 21:43
 * @description
 */
public interface Executor {
    <E> List<E> query(Configuration configuration, MappedStatement mappedStatement, Object[] params) throws SQLException, ClassNotFoundException, NoSuchFieldException, IllegalAccessException, IntrospectionException, InvocationTargetException, InstantiationException;

    int update(Configuration configuration, MappedStatement mappedStatement, Object[] params) throws Exception;
}
